<template>

  <div class="leave">
    <div class="top-wrap">
      <button class="scan-btn" type="button">
      请扫描工卡
      <i class="icon-wrokcard"></i>
      </button>
      <button class="scan-btn" type="button">
      请扫描患者腕带
      <i class="icon-patient"></i>
      </button>
      <button class="btn sure" type="button">
      确定</button>
      <button class="scan-btn" type="button">
      请扫描工卡
      <i class="icon-na"></i>
      </button>
      <div class="inner_block">
        <div></div>
        <h3 class="leave_time">离院时间
          <span >4</span>小时
        </h3>
      </div>

      <button class="scan-btn right sreach_btn" type="button">
        搜索
        <i class="icon-sreach"></i>
      </button>
      
      <form class="inner_block hide">
          <div class="serach_input inner_block">
            <input type="text table" placeholder="搜索">
            <img src="@/assets/img/icon/sreach.png"/>
          </div>
      </form>

    </div>
    <div class="content-wrap">
      <pcard></pcard>
    </div>
  </div>

</template>

<script lang="ts">

import { Component, Vue } from 'vue-property-decorator';
import Pcard from '@/components/pcard/pcard.vue';

@Component({
  components: {
    Pcard
  },
})

export default class Returnsick extends Vue {

}

</script>
<style lang="scss" scoped>
.leave{
  margin: 10px;
  .top-wrap{
    height: 70px;
    border: 1px solid #CBCBCB;
    padding: 9px 30px;
    text-align: left;
    .scan-btn{
      width: 180px;
      height: 50px;
      border-radius: 10px;
      border: 1px solid #04a9ad;
      color: #04a9ad;
      font-size: 18px;
      background: #FFF;
      margin-right: 5%;
      i{
        vertical-align: -8px;
        margin-left: 5px;
      }
      .icon-wrokcard{
        display: inline-block;
        width: 26px;
        height: 30px;
        background: url(../../../assets/img/icon/workcard.png) center no-repeat;
        background-size: cover;
      }
      .icon-na{
        display: inline-block;
        width: 26px;
        height: 30px;
        background: url(../../../assets/img/icon/na.png) center no-repeat;
        background-size: cover;
      }
      .icon-sreach{
        display: inline-block;
        width: 26px;
        height: 30px;
        background: url(../../../assets/img/icon/sreach.png) center no-repeat;
        background-size: cover;
      }
      .icon-patient{
        display: inline-block;
        width: 26px;
        height: 30px;
        background: url(../../../assets/img/icon/patient.png) center no-repeat;
        background-size: cover;
      }
      
    }
    .sreach_btn{
        margin-right:0;
      }
    .btn{
      width: 100px;
      height: 50px;
      border: none;
      border-radius: 10px;
      margin-right:  5%;
      padding: 0;
      font-size: 18px;
      font-weight: 400;
      color: #FFF;
    }
    .leave_time{
      font-weight: bolder;
      color:$green_color;
      span{
        
        margin-left:10px;
        font-size:0.3rem;
      }
      
      
    }
    form{
        margin-left:20px;
        .serach_input{
          
          width: 180px;
          height: 50px;
          input{
            display: table-cell;
            vertical-align: middle;
          }
          
          img{
            width:30px;
                
          }
        }
        .sreach_icon{
          display: inline-block;
          width: 26px;
          height: 30px;
          
          background: url(../../../assets/img/icon/sreach.png) center no-repeat;
          background-size: cover;
        }
    }
    .all{
      background-color: #ff4444;
    }
    .sure{
      background-color: #fea830;
    }
    .cancel{
      background-color: #04a9ad;
    }

  }
  .content-wrap{
    border: 1px solid #CBCBCB;
    margin-top: 12px;
    position: absolute;
    top: 206px;
    bottom: 50px;
    left: 10px;
    right: 10px;
    overflow-y: auto;
    padding: 18px 30px;
  }
}
</style>